package com.kfm.base.loop;

public class WhileDemo02 {

    public static void main(String[] args) {
        /*
            1 ~ 5 的乘积
         */
        int num = 1;
        int result = 1;

        do {
            result *= num;
            num ++;
        } while (num <= 5);

        System.out.println(result);
    }
}
